<?php

namespace App\Model\Admin;

use Illuminate\Database\Eloquent\Model;

class ProductType extends Model
{
    protected $fillable = [
        'type_name',
    ];

    public function attribute()
    {
        return $this->hasMany('App\Model\Aboot\Attribute', 'type_id', 'id');
    }


    public function product()
    {
        return $this->belongsTo('App\Model\Admin\Product', 'type_id', 'id');
    }
}
